<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>密码</title>
<script language="JavaScript">
    function rec(form)
    { var a=form.jmm.value;
        var b=form.xmm.value;
        var c=form.cxsrmm.value;

        if(c==b)
        alert("恭喜你 修改成功");
        else
        alert("对不起 密码与确认密码不一致！");
        function re(form){
        form.jmm.value="";
            form.xmm.value="";
            form.cxsrmm.value="";
    }
    }
</script>
</head>

<body>

<form action="">
    <table width="321" border="1" align="center">
        <tr>
            <td colspan="3" align="center"> 用户密码修改</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>旧密码：</td>
            <td><input type="password" name="jmm"></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>新密码：</td>
            <td><input type="password" name="xmm"></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>重新输入密码：</td>
            <td><input type="password" name="cxsrmm"></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><input type="button" name="button" value="提交" onclick="rec(form)"></td>
            <td><input type="reset" name="reset" value="重置" ></td>
        </tr>
    </table>
</form>

</body>
</html>
